import request from '@/request'

export function getAllTags () {
  return request({
    url: '/api/tags/list',
    method: 'get'
  })
}

export function getHotTags () {
  return request({
    url: '/api/tags/hot',
    method: 'get'
  })
}

export function getAllTagsDetail () {
  return request({
    url: '/api/tags/all',
    method: 'get'
  })
}

export function getTagDetail (id) {
  return request({
    url: `/api/tags/detail`,
    method: 'post',
    data: { id }
  })
}

/*
 * 暂时未用到
 */
export function getTag (id) {
  return request({
    url: `/api/tags/${id}`,
    method: 'get'
  })
}
